package com.znsd.zl.order.feign;

import com.znsd.zl.order.entity.ContractEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ClassName ContractFeign
 * @Description TODO
 * @Author zhubin
 * @Date 2020/8/31 21:30
 * @Version v1.0
 */
@Component
@FeignClient(value = "zlhouse-contract",fallback = ContractFeignFallback.class)
public interface ContractFeign {

	/**
	 *  合同生成
	 * @param contractEntity  封装合同对应的数据
	 * @return    1 代表成功    -1代表异常
	 */
	@PostMapping("/contract/add")
	Integer add(@RequestBody ContractEntity contractEntity);

}
